package dao;

import entity.Students;
import entity.User_Management;

import javax.naming.NamingException;
import java.awt.*;
import java.sql.SQLException;
import java.util.List;

public interface User_ManagementDao {
    List<User_Management> management(String username, int  pageSize,int  pageNum) throws SQLException, NamingException, ClassNotFoundException;
    int INSERT(String username,String password,String role,String phone,String sex) throws SQLException, ClassNotFoundException;
    int UPDATE(int user_id,String username,String password,String role,String phone,String created_at,String sex) throws SQLException, ClassNotFoundException;
    int delete(int user_id) throws SQLException, NamingException, ClassNotFoundException;

    int getTotalCount(String username) throws SQLException, NamingException, ClassNotFoundException;
}
